package com.smileus.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

/**
 * ServiceInfoId entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
@Entity
@Table(name = "SERVICE_INFO")
public class ServiceInfo implements java.io.Serializable {
	private static final long serialVersionUID = 1L;
	private long scId;
	private String sysDomain;
	private String service;
	private long status;
	private String controlBeanId;
	private String memo;
	private String paramArray;

	// Constructors

	/** default constructor */
	public ServiceInfo() {
	}

	/** full constructor */
	public ServiceInfo(long scId, String sysDomain, String service, long status, String controlBeanId, String memo, String paramArray) {
		this.scId = scId;
		this.sysDomain = sysDomain;
		this.service = service;
		this.status = status;
		this.controlBeanId = controlBeanId;
		this.memo = memo;
		this.paramArray = paramArray;
	}

	// Property accessors
	@Id
	@Column(name = "SC_ID", precision = 14, scale = 0)
	public long getScId() {
		return this.scId;
	}

	public void setScId(long scId) {
		this.scId = scId;
	}

	@Column(name = "SYS_DOMAIN", length = 20)
	public String getSysDomain() {
		return this.sysDomain;
	}

	public void setSysDomain(String sysDomain) {
		this.sysDomain = sysDomain;
	}

	@Column(name = "SERVICE", length = 50)
	public String getService() {
		return this.service;
	}

	public void setService(String service) {
		this.service = service;
	}

	@Column(name = "STATUS", precision = 1, scale = 0)
	public long getStatus() {
		return this.status;
	}

	public void setStatus(long status) {
		this.status = status;
	}

	@Column(name = "CONTROL_BEAN_ID", length = 20)
	public String getControlBeanId() {
		return this.controlBeanId;
	}

	public void setControlBeanId(String controlBeanId) {
		this.controlBeanId = controlBeanId;
	}

	@Column(name = "MEMO", length = 200)
	public String getMemo() {
		return this.memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	@Column(name = "PARAM_ARRAY", length = 1000)
	public String getParamArray() {
		return this.paramArray;
	}

	public void setParamArray(String paramArray) {
		this.paramArray = paramArray;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof ServiceInfo))
			return false;
		ServiceInfo castOther = (ServiceInfo) other;

		return (this.getScId() == castOther.getScId())
				&& ((this.getSysDomain() == castOther.getSysDomain()) || (this.getSysDomain() != null && castOther.getSysDomain() != null && this
						.getSysDomain().equals(castOther.getSysDomain())))
				&& ((this.getService() == castOther.getService()) || (this.getService() != null && castOther.getService() != null && this.getService().equals(
						castOther.getService())))
				&& (this.getStatus() == castOther.getStatus())
				&& ((this.getControlBeanId() == castOther.getControlBeanId()) || (this.getControlBeanId() != null && castOther.getControlBeanId() != null && this
						.getControlBeanId().equals(castOther.getControlBeanId())))
				&& ((this.getMemo() == castOther.getMemo()) || (this.getMemo() != null && castOther.getMemo() != null && this.getMemo().equals(
						castOther.getMemo())))
				&& ((this.getParamArray() == castOther.getParamArray()) || (this.getParamArray() != null && castOther.getParamArray() != null && this
						.getParamArray().equals(castOther.getParamArray())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result + (int) this.getScId();
		result = 37 * result + (getSysDomain() == null ? 0 : this.getSysDomain().hashCode());
		result = 37 * result + (getService() == null ? 0 : this.getService().hashCode());
		result = 37 * result + (int) this.getStatus();
		result = 37 * result + (getControlBeanId() == null ? 0 : this.getControlBeanId().hashCode());
		result = 37 * result + (getMemo() == null ? 0 : this.getMemo().hashCode());
		result = 37 * result + (getParamArray() == null ? 0 : this.getParamArray().hashCode());
		return result;
	}

}